<template>
  <!-- <div> -->
  <header class="header">
    <!-- <div class="header__back" @click="goBack"></div> -->
    <div v-if="!shows" class="header-back" @click="goBack">
      <van-icon name="arrow-left" />
    </div>
    <!-- <div class="header-back" @click="goBack"><van-icon name="revoke" /></div> -->
    <div class="header__title">{{ title }}</div>
    <div class="header__right1" v-if="shows == false &&
      StandingWorkFullShow == false &&
      equipmentWorkFull == false &&
      obstacleWorkFull == false
      "></div>
 

    <slot></slot>
  </header>
  <!-- </div> -->
</template>
<script>
import { compCollectAddComps, cusCollectUpdinfo, updInfo, automaticAcquisitionUpdInfo, DeviceInstallUpdInfo, DeviceInstallUpdInfoCompleted, emergencySupportFill } from "../api/index";
import qs from "qs";
export default {
  props: {
    title: {
      type: String,
      default: "",
    },
    backFilg: {
      type: String,
      default: "",
    },
    shows: {
      type: Boolean,
      default: false,
    },
    StandingWorkFullShow: {
      type: Boolean,
      default: false,
    },
    equipmentWorkFull: {
      type: Boolean,
      default: false,
    },
    obstacleWorkFull: {
      type: Boolean,
      default: false,
    },
    tabs: {
      type: Array,
      default: () => [],
    },
    StandingWorkFullForm: {
      type: Object,
    },
    equipmentWorkFullList: {
      type: Object,
    },
    obstacleWorkFullList: {
      type: Object,
    },
    taskNo: {
      type: String,
    },
    danNo: {
      type: Number,
    },
    list: {
      type: Object,
    },
    inspectionWorkFullList: {
      type: Object,
    },
    inspectionWorkFull: {
      type: Boolean,
      default: false,
    },
    equipmentInstallWorkFullList: {
      type: Object,
    },
    equipmentInstallWorkFull: {
      type: Boolean,
      default: false,
    },
    systemInstallWorkFullList: {
      type: Object,
    },
    systemInstallWorkFull: {
      type: Boolean,
      default: false,
    },
    emergencyWorkFullList: {
      type: Object,
    },
    emergencyWorkFull: {
      type: Boolean,
      default: false,
    },
  },
  methods: {
 
 

  


  
  
  
    goBack() {
      if (this.backFilg) {
        this.$emit("goBack");
      } else {
        this.$router.go(-1);
      }
    },
  },
};
</script>
<style lang="scss" scoped>
.header {
  height: 44px;
  // background: rgba(23, 119, 255, 1);
  // background: rgba(232, 57, 13, 1);
  background: #5290ff;
  //old
  position: relative;
  //  padding: 10px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;

  .header-back {
    margin-left: 16px;
  }

  .van-icon {
    //    color: #1A1A1A;
    color: #ffffff;
    font-size: 20px !important;
  }

  //  &__back {
  //   width: 10px;
  //   height: 18px;
  //   background-image: url(../assets/header/back.png);
  //   background-size: cover;
  //   position: absolute;
  //   left: 16px;
  //   &::after {
  //    content: "";
  //    display: block;
  //    width: 30px;
  //    height: 30px;
  //    position: absolute;
  //    left: -10px;
  //    top: -6px;
  //    background: transparent;
  //    z-index: 2;
  //   }
  //  }

  &__title {
    // font-family: PingFangSC, PingFangSC-Medium;
    font-family: "SimHei";
    color: rgba(255, 255, 255, 1);
    font-size: 18px;
    //   font-weight: 700;
    text-align: center;
    //   color: #1A1A1A;
    line-height: 20px;

    color: rgba(255, 255, 255, 1);
    font-size: 16px;
    font-weight: 500;
  }

  &__right {
    font-size: 12px;
    /* width: 100%; */
    background: #05ff97;
    color: #ffffff;
    padding: 4px 4px;
    margin-right: 10px;
  }

  &__right1 {
    font-size: 12px;
    /* width: 100%; */

    color: #ffffff;
    padding: 4px 4px;
    margin-right: 10px;
  }
}
</style>
